package com.imooc.girl.controller;

import com.imooc.girl.properties.GirlProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * Created by 10077 on 2018/3/6.
 * desc:
 */
//@RestController=@Controller+@Responsebody

@RestController
public class HelloController {

    @Autowired
    private GirlProperties girlProperties;


    @RequestMapping(value = "/hello",method = RequestMethod.GET)
    public String say(){
        return girlProperties.getCupSize()+girlProperties.getEge();
    }

//    @RequestMapping(value = "/say",method = RequestMethod.GET)
//    @GetMapping(value = "/say")
//    public String say(@RequestParam(value="id",required = false,defaultValue = "0")Integer id){
//        return "id:"+id;
//    }
}
